from django.urls import path
from .views import QaTestApiView, QaTest2ApiView, ChatGeneralView, ChatSingleTurnView, ChatStreamGeneralView, \
    ChatStreamSingleTurnView, CreateChatView, ChatListView, ChatDetailView, SendMessageView

urlpatterns = [
    path('qa-test/', QaTestApiView.as_view(), name='qa-test'),
    path('qa-sse-test/', QaTest2ApiView.as_view(), name='qa-test'),

    # 1. 通用对话（非流式，支持单轮/多轮）
    path("chat/general/", ChatGeneralView.as_view(), name="chat-general"),
    # 2. 单轮对话（非流式，便捷版）
    path("chat/single-turn/", ChatSingleTurnView.as_view(), name="chat-single-turn"),
    # 3. 通用流式对话（支持单轮/多轮）
    path("chat/stream/general/", ChatStreamGeneralView.as_view(), name="chat-stream-general"),
    # 4. 流式单轮对话（便捷版）
    path("chat/stream/single-turn/", ChatStreamSingleTurnView.as_view(), name="chat-stream-single"),

    # 创建新对话
    path('chat/create/', CreateChatView.as_view(), name='create-chat'),
    # 获取对话列表
    path('chat/list/', ChatListView.as_view(), name='chat-list'),
    # 获取对话详情
    path('chat/detail/<str:chat_id>/', ChatDetailView.as_view(), name='chat-detail'),
    # 发送消息
    path('chat/message/send/', SendMessageView.as_view(), name='send-message'),

]
